body {
  overflow-x: hidden;

  margin: 0 auto;
  min-width: 320px;
  max-width: 540px;

  font: normal 14px/1.5 PingFangSC-regular, Tahoma, Lucida Grande, Verdana, Microsoft Yahei, STXihei, hei;

  color: black;
  background: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
}

img {
  border: none;
}

div {
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #666;
}

.search_index {
  display: flex;
  position: fixed;
  z-index: 5;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* 固定定位后，长度的百分比不再以父级盒子为准，而是以浏览器页面为准 */
  padding: 12px 12px 6px;
  width: 100%;
  min-width: 320px;
  max-width: 540px;
  height: 50px;

  /* 对于已经固定定位的盒子，采用边距margin不会起任何作用 */
  /* margin: 0 auto; */

  background-color: #fff;
}

.search_box {
  display: flex;
  flex: 1;
  border: 2px solid #0086f6;
  border-radius: 16px;
  height: 32px;

  font-size: .94rem;

  color: #666;
}

.search_box .icon-chaxun {
  margin-left: 12px;
  font-size: 18px;
  color: #666;
}

.search_box span {
  margin-left: 6px;
  font-size: 15px;
  line-height: 27px;
  color: #999;
}

/* 导航栏 */
.nav_wrap {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  margin-top: 50px;
  padding: 6px 12px 2px;
  /* border-radius: 10px; */
  width: 100%;
  background-color: #fff;
}

.nav_list {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 1px;
}

.nav_list:first-child {
  margin-left: 0px;
}

.nav_item {
  width: 100%;
  height: 58px;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  margin-bottom: 1px;

}

.nav_wrap .nav_hotel {
  background-color: #fff5f1;
}

.nav_wrap .nav_hotel:first-child {
  /* border-top-left-radius: 8px; */
  background-color: #fb8650;
}

.nav_wrap ul.nav_list li.nav_item:first-child>a {
  font-family: PingFangSC-Medium;
  color: #fff;
}

.nav_wrap ul.nav_list li.nav_item a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav_item a [class^="nav_icon_"] {
  margin-bottom: 4px;
  width: 28px;
  height: 28px;
  background: url(../images/nav_sprits.png) no-repeat;
  background-size: 28px auto;
  background-position: 0 -84px;
}

.nav_item a .nav_icon_minsu {
  background-position: 0 -336px;
}

.nav_item a .nav_icon_baokuan {
  background-position: 0 0;
}

.nav_switch_wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;

  padding-top: 4px;
  width: 100%;
  height: 24px;

  background-image: linear-gradient(0deg, #f4f4f4, #fff);
}

.nav_switch_wrap .nav_switch_item {
  border-radius: 2px;
  width: 4px;
  height: 4px;
  background-color: #ccc;
}

.nav_switch_wrap .nav_switch_item:first-child {
  margin-right: 4px;
}

.nav_switch_wrap .nav_switch_item.nav_switch_item_active {
  width: 14px;
  background-color: #0086f6;
}

/* 广告栏 */
.sub_banner {
  display: flex;
  margin-left: -8px;
  margin-bottom: 10px;
  padding: 0 12px;
  background-color: #f4f4f4;
}

.sub_banner .banner {
  flex: 1;
  position: relative;
  margin-left: 8px;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  overflow: hidden;
}

.sub_banner .banner .block_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  height: 20px;
}

.sub_banner .banner .block_header .title {
  width: 73px;
  height: 20px;
}

.sub_banner .banner .block_header .slogan_hotsale {
  border-radius: 2px;
  padding: 0px 4px 1px 4px;
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  white-space: nowrap;
  color: #ff4607;
  background: #ffebe3;
}

.slider {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
}

.slider a .block_img {
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
  border-radius: 6px;
  height: 84px;
}

.slider a .block_img img {
  position: absolute;
  /* z-index: 0; */
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
}

.slider a .block_img .tag {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  border-radius: 6px 0 6px 0;
  padding: 0 3px;
  height: 14px;
  line-height: 14px;
  background: rgba(51, 51, 51, .8);
  font-size: 10px;
  color: #fff;
}

.slider a .block_footer {
  margin-top: 4px;
  height: 18px;
  line-height: 18px;
  overflow: hidden;
}

.slider a .block_footer .price_wrap {
  padding-right: 2px;
  height: 18px;
  line-height: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #f60;
}

.slider a .block_footer .price_wrap .symbol {
  font-style: normal;
  font-size: 11px;
  color: #f60;
  line-height: 1.1;
}

.switch_wrapper {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 40px;
  right: 10px;
}

.switch_wrapper .switch_item {
  margin-right: 4px;
  border-radius: 2px;
  width: 4px;
  height: 4px;
  background-color: hsla(0, 0%, 100%, .4);
}

.switch_wrapper .switch_item.switch_item_active {
  width: 14px;
  background-color: #fff;
}

.sub_banner .banner .block_header .slogan_rank {
  border-radius: 2px;
  padding: 0px 4px 1px 4px;
  height: 16px;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
  color: #ae6e15;
  background: #fdefd2;
}

.rank_wrapper {
  display: flex;
  flex-direction: row;
  position: relative;
}

.rank_wrapper .rank_item {
  flex: 1;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px;
}

.rank_wrapper .rank_item:first-child {
  margin-right: 2px;
}

.rank_wrapper .rank_item:last-child {
  margin-left: 2px;
}

.rank_wrapper .block_img {
  position: relative;
  box-sizing: border-box;
  border-radius: 6px;
  height: 84px;
  overflow: hidden;
}

.rank_wrapper .block_img img {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 84px;
  transform: translateY(-50%);
}

.rank_wrapper .block_img .tag {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 6px 0 6px 0;
  padding: 0 3px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  color: #663c00;
  background-image: linear-gradient(270deg, #f8e1bd, #e2c089);
}

.rank_wrapper .block_footer {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.rank_wrapper .block_footer .rank_title {
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #333;
}

/* 轮播图广告栏 */
.ad_banner_wrap {
  margin-top: 10px;
  padding: 0 12px 12px;
  overflow: hidden;
}

.ad_banner_wrap .img_wrap {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  max-width: 516px;
  min-width: 320px;
  height: 129px;
}

.ad_banner_wrap .img_wrap img {
  width: 100%;
}

/* footer栏 */
.toolbox {
  padding-top: 12px;
  padding-bottom: 50px;
  height: 100px;
}

.toolbox .tool_group {
  display: flex;
  justify-content: space-around;
  margin: 0 12px;
}

.toolbox .tool_group .tool_link {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #999;
  height: 30px;
  min-width: 100px;
  font-size: 13px;
  color: #333;
}

.tool_ver {
  margin-top: 13px;
  text-align: center;
  font-size: 12px;
}

.tool_ver .sitemap {
  margin-right: 50px;
}

.tool_ver a {
  color: #666;
}

.tool_ver p {
  margin-top: 16px;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  letter-spacing: 0;
  color: #666;
}

.tool_ver p .link_icp {
  margin-left: 6px;
}

/* 尾部导航栏 */
.tabbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 540px;
  height: 49px;
  background-color: #fff;
}

.tabbar .tabbar_link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 5px;
  font-size: 11px;
  line-height: 12px;
  color: #666;
}

.tabbar [class^='icon_'] {
  width: 32px;
  height: 32px;
  background-size: 32px auto;
  background-image: url(../images/tabbar_sprits.png);
}

.tabbar .icon_home {
  background-position: 0 0;
}

.tabbar .icon_community {
  background-position: 0 -32px;
}

.tabbar .icon_message {
  background-position: 0 -64px;
}

.tabbar .icon_myCtrip {
  background-position: 0 -96px;
}
